package com.zp.adapter;/**
 * @description
 * @author zp
 * @created 2021/9/3 17:29
 */

/**
 * @author zp
 * @description
 * @created 2021/9/3 17:29
 */
public class AudioPlayer implements MediaPlayer {
    public void play(String audioType, String fileName) {
        if("mp3".equals(audioType)){
            System.out.println("播放mp3");
        }else if("mp4".equals(audioType)
            || "vlc".equals(audioType)){
            MediaAdapter mediaAdapter = new MediaAdapter(audioType);
            mediaAdapter.play(audioType,fileName);
        }else{
            System.out.println("没有找到任何的播放入口");
        }
    }
}
